package com.curry.livehelper.entity.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2017-11-02
 */
@TableName("t_user_info")
@Data
public class TUserInfo extends Model<TUserInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
	private Integer aid;
    /**
     * 用户名
     */
	private String username;
	private String phone;
    /**
     * 最后登录
     */
	private String lastTime;
	private String password;
	private String salt;
    /**
     * 会员等级
     */
	private Integer level;
    /**
     * 访问某个功能次数
     */
	private Integer count;
    /**
     * 推广链接
     */
	@TableField("promote_url")
	private String promoteUrl;


	public Integer getAid() {
		return aid;
	}

	public void setAid(Integer aid) {
		this.aid = aid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getPromoteUrl() {
		return promoteUrl;
	}

	public void setPromoteUrl(String promoteUrl) {
		this.promoteUrl = promoteUrl;
	}

	@Override
	protected Serializable pkVal() {
		return this.aid;
	}

}
